package com.example.springbootwebservice.service.impl;

import com.example.springbootwebservice.service.DemoService;
import org.springframework.stereotype.Component;

/**
 * @author: xulinyi
 * @create: 2019-03-25 09:16
 **/
//@javax.jws.WebService(
//        // 服务名  与接口中指定的name一致
//        serviceName = "DemoService"
//        //接口包名倒叙，并且和接口定义保持一致
//        , targetNamespace = "http://service.springbootwebservice.example.com"
//        //接口地址
//        , endpointInterface = "com.example.springbootwebservice.service.DemoService")
@javax.jws.WebService( serviceName = "DemoService"
        ,targetNamespace = "http://service.springbootwebservice.example.com"
        ,endpointInterface = "com.example.springbootwebservice.service.DemoService")
@Component
public class DemoServiceImpl implements DemoService {
    @Override
    public String say(String name) {
        return "我是：" + name;
    }

}
